extends ./panel.pug

block title
  | #[span.icon-tags] #{title}
  if(firstKey && firstValue)
    span.g-widget-metadata-header-key-value #{firstKey+' '+firstValue+'  '}
block controls
  if (accessLevel >= AccessType.WRITE)
    span.s-no-panel-toggle
      button.g-widget-metadata-add-button.btn.btn-sm.btn-default.dropdown-toggle(data-toggle="dropdown", title="Add Metadata")
        i.icon-plus
      ul.dropdown-menu.pull-right(role="menu")
        li(role="presentation")
          a.g-add-simple-metadata(role="menuitem")
            | Simple
        li(role="presentation")
          a.g-add-json-metadata
            | JSON
    span.s-no-panel-toggle.h-panel-maximize
      i.icon-resize-full(title="Maximize")

block content
  .g-widget-metadata-container
